let arr = [11, 22, 33]
let a = arr.reduce((x, y) => Math.max(x, y))
let b = arr.reduce((x, y) => Math.min(x, y))
console.log(a, b);